package org.fuyd.action;

import java.util.Map;

import org.apache.struts2.interceptor.ApplicationAware;
import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public class TestAction extends ActionSupport
    implements
      RequestAware,
      SessionAware,
      ApplicationAware {

  /**
   * 
   */
  private static final long serialVersionUID = -2829639687229856216L;

  private Map<String, Object> request, session, application;

  private String username, password;

  public Map<String, Object> getRequest() {
    return request;
  }

  public void setRequest(Map<String, Object> request) {
    this.request = request;
  }

  public Map<String, Object> getSession() {
    return session;
  }

  public void setSession(Map<String, Object> session) {
    this.session = session;
  }

  public Map<String, Object> getApplication() {
    return application;
  }


  public void setApplication(Map<String, Object> application) {
    this.application = application;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String test() {
    session.put("username", username);
    return SUCCESS;
  }

}
